package fun.hijklmn.magic.idGenerator.client.api;

import fun.hijklmn.magic.idGenerator.common.enums.ServerTypeEnum;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description
 * @Author fs
 * @Date 2021/7/12 17:53
 * @Version 0.0.1-SNAPSHOT
 **/
@FeignClient(name = "idGenerator-server")
public interface IdGeneratorServiceApi {

    @GetMapping(value = "/id/get", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
    String get(@RequestParam ServerTypeEnum serverTypeEnum);

}
